
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <script language="javascript" src="../js/jquery/jquery-1.6.2.js.js"></script>
        <script language="javascript" src="js/DomSample.js"></script>
        <script>
            $(document).ready(function(){
                $('#commit').click(function(){
                    alert($('#god').val()) ;
                })
                 
            });
            
        </script>
        
    </head>
    <body>
        获取控件值
        <input type="text" id ="god" style="background: #ccffff " /></input>
        <input type="button" id="commit" />
    </body>
</html>
